/** 转化百分比 */
const percentageNewIntl = (val) => {
  const ratioVal = val * 100
  return new Intl.NumberFormat('en-IN', { maximumSignificantDigits: 4 }).format(ratioVal)
}

/** 保留两位小数，不四舍五入*/
const twoDigitsNewIntl = (val) => {
  return new Intl.NumberFormat('en-IN', { minimumFractionDigits: 2, maximumFractionDigits: 2 }).format(val)
}

export {
  percentageNewIntl,
  twoDigitsNewIntl
}
